<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head th:replace="_fragments :: head(~{::title})" >
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>搜索结果</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../static/css/me.css">
</head>
<body>

<!--导航-->
    <nav th:replace="_fragments :: menu(1)" class="ui inverted attached segment m-padded-tb-mini m-shadow-small">
        <div class="ui container">
          <div class=" ui inverted  secondary stackable menu">
              <h2 class="ui teal header item ">自学论坛系统</h2>
              <a href="#" class="m-item item ui inverted red basic button m-mobile-hide"><i class="small globe icon"></i>首页</a>
              <a href="#" class="m-item item ui inverted orange basic button m-mobile-hide"><i class="small idea icon"></i>分类</a>
              <a href="#" class="m-item item ui inverted yellow basic button m-mobile-hide"><i class="small tags icon"></i>标签</a>
              <a href="#" class="m-item item ui inverted purple basic button m-mobile-hide"><i class="small clone icon"></i>归档</a>
              <a href="#" class="m-item item ui inverted olive basic button m-mobile-hide"><i class="small info icon"></i>关于我</a>
              <div class="m-item right item m-mobile-hide">
                  <div class="ui icon transition input">
                      <input type="text" placeholder="搜索...">
                      <i class="search link icon"></i>
                  </div>
              </div>
          </div>
        </div>
        <a href="#" class="ui menu toggle icon black button m-right-top m-mobile-show">
            <i class="list ui icon"></i>
        </a>

    </nav>


<!--中间内容-->
    <div class="m-padded-tb-large m-container-small main-content main-content">
        <div class="ui container">
            <!--header-->
            <div class="ui top attached segment">
                <div class="ui middle aligned two column grid">
                    <div class="column">
                        <h3 class="ui teal header">搜索结果</h3>
                    </div>
                    <div class="right aligned column">
                        共 <h2 class="ui orange header m-inline-block m-text-thin" th:text="${page.totalElements}"> 14 </h2> 个
                    </div>
                </div>
            </div>


            <div class="ui top attached teal segment">
                <div class="ui padded vertical segment m-padded-tb-big" th:each="blog : ${page.content}">
                    <div class="ui grid mobile reversed stackable">
                        <div class="eleven wide column">
                            <h3 class="ui header"><a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank" class="m-black" th:text="${blog.title}">The Stone Roses简介</a></h3>
                            <p class="m-text" th:text="|${blog.description}......|"> 80年代末期英国流行音乐进入低潮，曾创造英国新浪潮音乐的曼彻斯特，这期间也变得萧条。正当英国音乐将在沉闷中进入90年代的时候，
                                一支叫做“石玫瑰”(The Stone Roses)的乐队出现了，1989年，他们的第一张专辑的出版，使英国“独立摇滚”(Indie-Rock)现象进入了新的时代。</p>
                            <div class="ui stackable grid">
                                <div class="eleven wide column">
                                    <div class="ui horizontal mini link list">
                                        <div class="item">
                                            <img src="../static/images/The%20Stone%20Roses.jpg"  th:src="@{${blog.user.avatar}}" alt="" class="ui avatar image">
                                            <div class="content"><a href="#" class="header" th:text="${blog.user.nickname}">The Stone Roses</a></div>
                                        </div>
                                        <div class="item">
                                            <i class="calendar alternate icon"></i><span th:text="${#dates.format(blog.updateTime,'yyyy-MM-dd')}">2021-1-1</span>
                                        </div>
                                        <div class="item">
                                            <i class="eye icon"></i><span th:text="${blog.views}">1234</span>
                                        </div>
                                    </div>
                                </div>
                                <div class="right aligned  five wide column">
                                    <a href="#" target="_blank" class="ui teal basic label m-padded-large m-text-thin" th:text="${blog.type.name}">英伦摇滚</a>
                                </div>
                            </div>
                        </div>

                        <div class=" right aligned five wide column">
                            <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank">
                                <img src="../static/images/The%20Stone%20Roses.jpg" th:src="@{${blog.firstPicture}}" alt="" class="ui rounded image">
                            </a>
                        </div>
                    </div>
                </div>
            </div>

            <!-- footer-->
            <div class="ui bottom  attached segment" th:if="${page.totalPages}>1">
                <div class="ui middle aligned two column grid">
                    <div class="column">
                        <a href="#" th:href="@{/(page=${page.number}-1)}"  th:unless="${page.first}" class="ui mini teal basic button">上一页</a>
                    </div>
                    <div class="right aligned column">
                        <a href="#" th:href="@{/(page=${page.number}+1)}"  th:unless="${page.last}" class="ui mini teal basic button">下一页</a>
                    </div>
                </div>

            </div>
        </div>
    </div>


    <br>
    <br>
    <br>
    <br>



<!--底部-->
<footer th:replace="_fragments :: footer" class="ui inverted vertical segment m-padded-tb-max">
    <div class="ui center aligned container">
        <div class="ui inverted divided stackable grid">
            <div class="two wide column">
                <div class="ui inverted link list">
                    <div class="item">
                        <img src="../static/images/lemon.png" th:src="@{images/lemon.png}" class="ui rounded image" alt="" style="width: 120px">
                    </div>
                </div>
            </div>
            <div class="four wide column">
                <h4 class="ui inverted header m-opacity-mini">最新帖子</h4>
                <div class="ui inverted link list m-text-spaced">


                </div>
            </div>
            <div class="four wide column">
                <h4 class="ui inverted header m-opacity-mini">联系我</h4>
                <div class="ui inverted link list m-text-spaced">
                    <a href="#" class="item"><i class="envelope outline icon"></i> email: 12138@nmsl.com</a>
                    <a href="#" class="item"><i class="comments outline icon"></i> vx: s14635123</a>
                    <a href="#" class="item"><i class="phone icon"></i> phone: 110</a>

                </div>
            </div>
            <div class="six wide column">
                <h4 class="ui inverted header m-opacity-mini">关于此论坛</h4>
                <p class="m-text-thin m-text-spaced m-opacity-mini">暂无。。。</p>
            </div>
        </div>
        <div class="ui inverted section divider"></div>
        <p class="m-text-thin m-text-spaced m-opacity-tiny"><i class="cn flag"></i>started in 2021.1.1 </p>
    </div>



</footer>

<!--/*/<th:block  th:replace="_fragments :: script">/*/-->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
<!--/*/</th:block>/*/-->

<!--jquery获取菜单 隐藏-->
<script>
    $('.menu.toggle').click(function () {
        $('.m-item').toggleClass('m-mobile-hide');

    });

</script>

</body>
</html>